import type { SysPermissionTreeVO, SysPermission } from '@/api/system/permission/type'


export interface SysUser {
    userId: string;
    userName: string;
    nickName: string;
    sex: number;
    avatar: string;
    phone: string;
    status: number;
    remark: string
}

/**
 * 用户登录表单提交数据
 */
export interface LoginFrom {
    userName: string,
    password: string,
    captchaKey: string,
    captchaValue: string
}

/**
 * 获取图形验证码返回数据类型
 */
export interface captchaResponseData {
    captchaImage: string,
    captchaKey: string
}

export interface SysUserInfoVOResponseData {
    menus: SysPermissionTreeVO[],
    routers: SysPermission[],
    permissionsCode: string[],
    sysUser: SysUser
}
export interface SysUserQuery {
    pageNum: number,
    pageSize: number,
    keywords: string,
    status: number,
    phone: string
}
export interface SysUserAuthRole{
    userId: string,
    roleIds: string[]
}
